package com.hoopeu.ui.activity;



import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.Window;
import android.widget.ListView;
import android.widget.TextView;
import com.hoopeu.app.MyApp;
import com.hoopeu.smarthome.R;
import com.hoopeu.ui.adapter.CurtainAdapter;


public class CurtainActivity extends Activity{
	
	private String TAG = CurtainActivity.class.getSimpleName();
	Context mContext;
	String deviceId;
	private String roomId;


	public void onCreate(Bundle paramBundle) {
		super.onCreate(paramBundle);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.curtain_normal);
		this.mContext = this;
		MyApp.app.addActivity(this);
	    this.deviceId = getIntent().getStringExtra("deviceId");
	    roomId = getIntent().getStringExtra("roomId");
	    ((TextView)findViewById(R.id.title)).setText(getResources().getString(R.string.curtain));
	    ((TextView)findViewById(R.id.tvHomeName)).setText(getIntent().getStringExtra("roomName"));
	    
	   
	    ListView localListView = (ListView)findViewById(R.id.curtain_list);
	    localListView.setDividerHeight(0);
	    
	    
	    localListView.setAdapter(new CurtainAdapter(this,roomId));
	 
	  
	}
	protected void onDestroy() {
		super.onDestroy();
	}

	protected void onResume() {
		super.onResume();
	}

	protected void onStop() {
		super.onStop();
	}
}
